<template>
  <div class="my-add">
    <h3>Add组件</h3>
    <p>当前库存: {{ $store.state.num }}</p>
    <button @click="$store.commit('addNum', 3)">增加库存</button>
  </div>
</template>

<script>
export default {
}
</script>

<style>

</style>
